<script type="text/javascript" src="./public/js/product/product.js?v=20160421"></script>
<div class="mar_bot">
    <table>
        <thead>
            <tr>
                {loop $thead $key $val}
                <td width={$val['width']}>{$val['name']}</td>
                {/loop}
            </tr>
        </thead>
        <tbody>
            <?php for ($i = 0; $i < count($products); $i++) {?>
            <tr class="tr {if $products[$i]['count']<=5}ba_col_danger{/if}">
                <?php if($products[$i]['id']){?>
                <td class="p_id">{$products[$i]['id']}</td>
                <td><input type="text" class="input require" name="p_name" value="{$products[$i]['product_name']}"></td>
                <td><input type="text" class="input require float" name="p_price" value="{$products[$i]['price']}"></td>
                <td><input type="text" class="input require int" name="p_count" value="{$products[$i]['count']}"></td>
                <?php }?>
            </tr>
            <?php }?>
        </tbody>
    </table>
</div>

<div class="mar_bot">
    <span class="btn btn_suc submit">修改</span>
</div>